/*
 * kankan
 */

@font-face {
	font-family: 'xupload';
	src: url('../fonts/xupload.eot');
	src: url('../fonts/xupload.eot#iefix') format('embedded-opentype'), url('../fonts/xupload.woff') format('woff'), url('../fonts/xupload.ttf') format('truetype'), url('../fonts/xupload.svg#xupload') format('svg');
	font-weight: normal;
	font-style: normal;
}

[class^="xupload-font-"]:before, [class*=" xupload-font-"]:before, .xupload-font:before, .xupload-wrapper .xupload-message span.file-icon:before, .xupload-wrapper .xupload-preview .xupload-infos .xupload-infos-inner p.xupload-filename span.file-icon:before {
	font-family: "xupload";
	font-style: normal;
	font-weight: normal;
	speak: none;
	display: inline-block;
	text-decoration: inherit;
	width: 1em;
	margin-left: .2em;
	margin-right: .2em;
	text-align: center;
	font-variant: normal;
	text-transform: none;
	line-height: 1em;
}

.xupload-font-upload:before, .xupload-wrapper .xupload-message span.file-icon:before {
	content: '\e800';
}

.xupload-font-file:before {
	content: '\e801';
}

.xupload-wrapper {
	display: block;
	position: relative;
	cursor: pointer;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	height: 200px;
	padding: 5px 10px;
	font-family: "Roboto", "Helvetica Neue", "Helvetica", "Arial";
	font-size: 14px;
	line-height: 22px;
	color: #777;
	background-color: #FFF;
	background-image: none;
	text-align: center;
	border: 1px solid #e8e8e8;
	border-radius: 3px;
}

.xupload-wrapper:hover {
    background-size: 30px 30px;
    background-image: -webkit-linear-gradient(135deg, #F6F6F6 25%, transparent 25%, transparent 50%, #F6F6F6 50%, #F6F6F6 75%, transparent 75%, transparent);
    background-image: linear-gradient(-45deg, #F6F6F6 25%, transparent 25%, transparent 50%, #F6F6F6 50%, #F6F6F6 75%, transparent 75%, transparent);
    -webkit-animation: stripes 2s linear infinite;
            animation: stripes 2s linear infinite;
}

.xupload-wrapper.has-preview .xupload-clear {
	display: block;
	width: 30px;
}

.xupload-wrapper.has-error .xupload-message .xupload-error {
	display: block;
}

.xupload-wrapper.disabled input {
    cursor: not-allowed;
}
    
.xupload-wrapper.disabled:hover {
	background-image: none;
	-webkit-animation: none;
	        animation: none;
}

.xupload-wrapper.disabled .xupload-message {
	opacity: 0.5;
	text-decoration: line-through;
}

.xupload-wrapper.disabled .xupload-infos-message {
	display: none;
}

.xupload-wrapper input {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	height: 100%;
	width: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 5;
}

.xupload-wrapper .xupload-message {
	position: relative;
	top: 50%;
	-webkit-transform: translateY(-50%);
	    -ms-transform: translateY(-50%);
	        transform: translateY(-50%);
}

.xupload-wrapper .xupload-message span.file-icon {
	font-size: 50px;
	color: #CCC;
}

.xupload-wrapper .xupload-message p {
	margin: 5px 0 0 0;
}

.xupload-wrapper .xupload-message p.xupload-error {
	color: #F34141;
	font-weight: bold;
	display: none;
}

.xupload-wrapper .xupload-clear {
	display: none;
	position: absolute;
	opacity: 0;
	z-index: 7;
	right: 10px;
	bottom: 10px;
	background: none;
	border: 1px solid #FFF;
	border-radius: 3px;
	color: #FFF;
	-webkit-transition: all 0.15s linear;
	        transition: all 0.15s linear;
}

.xupload-wrapper .xupload-clear:hover {
	background: rgba(255, 255, 255, 0.2);
}

.xupload-wrapper .xupload-preview {
	display: none;
	position: absolute;
	z-index: 1;
	background-color: #FFF;
	padding: 5px;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	text-align: center;
}

.xupload-wrapper .xupload-preview .xupload-render img {
	top: 50%;
	-webkit-transform: translate(0, -50%);
	    -ms-transform: translate(0, -50%);
	        transform: translate(0, -50%);
	position: relative;
	max-width: 100%;
	max-height: 100%;
	background-color: #FFF;
	-webkit-transition: border-color 0.15s linear;
	        transition: border-color 0.15s linear;
}

.xupload-wrapper .xupload-preview .xupload-render i {
	font-size: 70px;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	    -ms-transform: translate(-50%, -50%);
	        transform: translate(-50%, -50%);
	position: absolute;
	color: #777;
}

.xupload-wrapper .xupload-preview .xupload-render .xupload-extension {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	    -ms-transform: translate(-50%, -50%);
	        transform: translate(-50%, -50%);
	margin-top: 10px;
	text-transform: uppercase;
	font-weight: 900;
	letter-spacing: -0.03em;
	font-size: 13px;
	width: 42px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xupload-wrapper .xupload-preview .xupload-infos {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	-webkit-transition: opacity 0.15s linear;
	        transition: opacity 0.15s linear;
}

.xupload-wrapper .xupload-preview .xupload-infos .xupload-infos-inner {
	position: absolute;
	top: 50%;
	-webkit-transform: translate(0, -40%);
	    -ms-transform: translate(0, -40%);
	        transform: translate(0, -40%);
	-webkit-backface-visibility: hidden;
	        backface-visibility: hidden;
	width: 100%;
	padding: 0 20px;
	-webkit-transition: all 0.2s ease;
	        transition: all 0.2s ease;
}

.xupload-wrapper .xupload-preview .xupload-infos .xupload-infos-inner p {
	padding: 0;
	margin: 0;
	position: relative;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #FFF;
	text-align: center;
	line-height: 25px;
	font-weight: bold;
}

.xupload-wrapper .xupload-preview .xupload-infos .xupload-infos-inner p.xupload-filename span.file-icon {
	margin-right: 2px;
}

.xupload-wrapper .xupload-preview .xupload-infos .xupload-infos-inner p.xupload-infos-message {
	margin-top: 15px;
	padding-top: 15px;
	font-size: 12px;
	position: relative;
	opacity: 0.5;
}

.xupload-wrapper .xupload-preview .xupload-infos .xupload-infos-inner p.xupload-infos-message::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	-webkit-transform: translate(-50%, 0);
	    -ms-transform: translate(-50%, 0);
	        transform: translate(-50%, 0);
	background: #FFF;
	width: 30px;
	height: 2px;
}

.xupload-wrapper:hover .xupload-clear {
	opacity: 1;
}

.xupload-wrapper:hover .xupload-preview .xupload-infos {
	opacity: 1;
}

.xupload-wrapper:hover .xupload-preview .xupload-infos .xupload-infos-inner {
	margin-top: -5px;
}
      
.xupload-wrapper.touch-fallback {
	height: auto !important;
}

.xupload-wrapper.touch-fallback:hover {
	background-image: none;
	-webkit-animation: none;
	        animation: none;
}
   
.xupload-wrapper.touch-fallback .xupload-preview {
	position: relative;
	padding: 0;
}
      
.xupload-wrapper.touch-fallback .xupload-preview .xupload-render {
	display: block;
	position: relative;
}
        
.xupload-wrapper.touch-fallback .xupload-preview .xupload-render .xupload-font-file {
	position: relative;
	-webkit-transform: translate(0, 0);
	    -ms-transform: translate(0, 0);
	        transform: translate(0, 0);
	top: 0;
	left: 0;
}
          
.xupload-wrapper.touch-fallback .xupload-preview .xupload-render .xupload-font-file::before {
	margin-top: 30px;
	margin-bottom: 30px;
}
        
.xupload-wrapper.touch-fallback .xupload-preview .xupload-render img {
	position: relative;
	-webkit-transform: translate(0, 0);
	    -ms-transform: translate(0, 0);
	        transform: translate(0, 0);
}
      
.xupload-wrapper.touch-fallback .xupload-preview .xupload-infos {
	position: relative;
	opacity: 1;
	background: transparent;
}
        
.xupload-wrapper.touch-fallback .xupload-preview .xupload-infos .xupload-infos-inner {
	position: relative;
	top: 0;
	-webkit-transform: translate(0, 0);
	    -ms-transform: translate(0, 0);
	        transform: translate(0, 0);
	padding: 5px 90px 5px 0;
}

.xupload-wrapper.touch-fallback .xupload-preview .xupload-infos .xupload-infos-inner p {
	padding: 0;
	margin: 0;
	position: relative;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #777;
	text-align: left;
	line-height: 25px;
}

.xupload-wrapper.touch-fallback .xupload-preview .xupload-infos .xupload-infos-inner p.xupload-filename {
	font-weight: bold;
}
            
.xupload-wrapper.touch-fallback .xupload-preview .xupload-infos .xupload-infos-inner p.xupload-infos-message {
	margin-top: 0;
	padding-top: 0;
	font-size: 11px;
	position: relative;
	opacity: 1; 
}
              
.xupload-wrapper.touch-fallback .xupload-preview .xupload-infos .xupload-infos-inner p.xupload-infos-message::before {
	display: none;
}

.xupload-wrapper.touch-fallback .xupload-message {
	-webkit-transform: translate(0, 0);
	    -ms-transform: translate(0, 0);
	        transform: translate(0, 0);
	padding: 40px 0;
}

.xupload-wrapper.touch-fallback .xupload-clear {
	top: auto;
	bottom: 23px;
	opacity: 1;
	border-color: rgba(119, 119, 119, 0.7);
	color: #777;
}

.xupload-wrapper.touch-fallback.has-preview .xupload-message {
	display: none;
}

.xupload-wrapper.touch-fallback:hover .xupload-preview .xupload-infos .xupload-infos-inner {
	margin-top: 0;
}

@-webkit-keyframes stripes {
	from {
    	background-position: 0 0;
	}
	to {
		background-position: 60px 30px;
	}
}

@keyframes stripes {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 60px 30px;
	} 
}